package com.o2o.model.area;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.o2o.base.BaseModel;

@Component
public class Address extends BaseModel{

	/**
	 * 存储地址类
	 */
	private static final long serialVersionUID = -5032857033271488211L;
	
	private long id;
	
	private int provinceCode;//省份code
	
	private int cityCode;//城市code
	
	private int areaCode;//区域code
	
	private String address;//街道小区详细地址
	
	private String fullAddressDetail;//全地址
	
	private Date addTime;//添加时间
	
	private String province;
	
	private String city;
	
	private String area;
	
	private long userId;
	
	
	
	

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getFullAddressDetail() {
		return fullAddressDetail;
	}

	public void setFullAddressDetail(String fullAddressDetail) {
		this.fullAddressDetail = fullAddressDetail;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getProvinceCode() {
		return provinceCode;
	}

	public void setProvinceCode(int provinceCode) {
		this.provinceCode = provinceCode;
	}

	public int getCityCode() {
		return cityCode;
	}

	public void setCityCode(int cityCode) {
		this.cityCode = cityCode;
	}

	public int getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(int areaCode) {
		this.areaCode = areaCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Override
	public String toString() {
		return "Address [id=" + id + ", provinceCode=" + provinceCode
				+ ", cityCode=" + cityCode + ", areaCode=" + areaCode
				+ ", address=" + address + ", fullAddressDetail="
				+ fullAddressDetail + ", addTime=" + addTime + "]";
	}

	
	

}
